package kassiopeia.agent;

import kassiopeia.commons.AgentStatus;
import kassiopeia.commons.TaskSummary;
import org.springframework.stereotype.Component;

@Component
public class AgentStatusHolder {

    private AgentStatus status = AgentStatus.IDLE;

    private TaskSummary taskSummary;

    public synchronized AgentStatus getStatus() {
        return status;
    }

    public synchronized TaskSummary getTaskSummary() {
        return taskSummary;
    }

    public synchronized void setStatus(AgentStatus status) {
        this.status = status;
    }

    public synchronized void setTaskSummary(TaskSummary taskSummary) {
        this.taskSummary = taskSummary;
    }

}
